/*
 * commons is a based project implemented
 * Copyright (C) 2024 Jasmine
 */
package com.easy.core.domain.pojo;

import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * SQL排序对象
 *
 * @author Jasmine
 * @since 1.0.0
 */
public class Order implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "排序字段")
    private String field;

    @Schema(description = "排序方式（true-正序,false-反序）")
    private Boolean direction;

    public Order() {}

    public Order(String field, Boolean direction) {
        this.field = field;
        this.direction = direction;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public Boolean getDirection() {
        return direction;
    }

    public void setDirection(Boolean direction) {
        this.direction = direction;
    }
}